const tokenKey= 'ty-music-token'

export const setToken = (token:String) => {
    wx.setStorageSync(tokenKey,token)
}

export const getToken = () => {
    return wx.getStorageSync(tokenKey)||null
}

export const removeToken = () => {
    wx.setStorageSync(tokenKey,'')
    wx.removeStorageSync(tokenKey)
}